package com.yunji.system.context;

import com.yunji.system.service.ISysDictDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

@Service
public class SystemCache {

    private static ISysDictDataService sysDictDataService;

    @Autowired
    protected void setSysDictDataService(ISysDictDataService sysDictDataService) {
        SystemCache.sysDictDataService = sysDictDataService;
    }

//    public static BigDecimal getCabinetTypeHeight(Integer typeId){
//        String height = sysDictDataService.selectRemark("container_type", String.valueOf(typeId));
//        String regEx = "\\d+";
//        Matcher matcher = Pattern.compile(regEx).matcher(height);
//        String group = "";
//        while (matcher.find()) {
//             group = matcher.group();
//        }
//        return new BigDecimal(group);
//    }

}
